package com.banan.Controller;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

import lombok.extern.log4j.Log4j;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.banan.entity.Account;
import com.banan.service.IaccountService;

@Controller
@Log4j
public class AccountController {
	@Autowired
	IaccountService iaccountService;
	
	@RequestMapping("/getall")
	public String show(HttpServletRequest request){
		System.out.println("接收到请求！*******************");
		String str=request.getParameter("Str");

		return "show";
	}
	
	@RequestMapping("/index")
	public String index(HttpServletRequest request){
		/*List<Account> list=iaccountService.getall();
		request.setAttribute("list", list);*/
		return "index";
	}
    @RequestMapping("/fire")
    public String fire(HttpServletRequest request){
		/*List<Account> list=iaccountService.getall();
		request.setAttribute("list", list);*/
        return "fire";
    }
	public String SearchPasword(){

		return "search";
	}

}
